// file:api.js
// 1、导入axios以及拦截器
import service from './request'

// 2、定义登录函数接口
export const siteList = (data) => {
    return service({
        url: '/site/site/siteList',
        method: 'post',
        data
    })
};
export const updateSite = (data) => {
    return service({
        url: '/site/site/updateSite',
        method: 'post',
        data
    })
};
export const deleteSite = (id) => {
    return service({
        url: '/site/site/deleteSite?id='+id,
        method: 'post',
    })
};
export const insertSite = (data) => {
    return service({
        url: '/site/site/insertSite',
        method: 'post',
        data
    })
};